package com.lan.controller.wealth;

import com.lan.service.wealth.WealthService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * <p>
 *  Wealth Controller
 * </p>
 *
 * @author shadow
 * @since 2022-09-03
 */
@Controller
@RequestMapping("/wealth")
public class WealthController {

    @Resource
    private WealthService wealthService;

    @GetMapping("index")
    public String index(final ModelMap model) {
        model.addAttribute("wealth", wealthService.getWealthObject());
        return "wealth/index";
    }

}
